<tbody>

</tbody>
<script type="text/template" id="posts">
    {{each postsList}}
    <tr>
        <td>{{$value.title}}</td>
        <td>{{$value.author && $value.author.nickName}}</td>
        <td>{{$value.category.title}}</td>
        <td class="text-center">{{$value.createAt}}</td>
        <td class="text-center">{{$value.state}}</td>
        <td class="text-center">
            <a href="javascript:;" class="btn btn-default btn-xs">编辑</a>
            <a href="javascript:;" class="btn btn-danger btn-xs dele" key="{{$value._id}}">删除</a>
        </td>
    </tr>
    {{/each}}
</script>